#pragma once
#include "ParseTree.h"
#include "Helper.h"
#include "ScannerV0.h"

class Leave : public ParseTree
{
    Token* token;
    static ScannerV0* scanner;

public:
    Leave(Token* token);
    virtual ~Leave();

    static void setScanner(ScannerV0* scanner);

    Token* getToken();
    TType getType();
    void setType(TType type);
    //Inherited from ParseTree (overload functions!)  
    //virtual void create(void (*typeCheckFunc) (ParseTree*), void (*makeCodeFunc) (ParseTree*));
    virtual void typeCheck();
    virtual void makeCode();
    virtual char* getLexem();
    virtual int getValue();
};
